package com.baocai.tools.controller;

import com.baocai.tools.domain.ServerSettings;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：minyang
 * @date ：Created in 2019/7/18 7:00
 * 配置文件加载
 */
@RestController
@RequestMapping("/propert")
public class propertController {

    @Autowired
    private ServerSettings serverSettings;

    @GetMapping("/test_properties")
    public Object testPeroperties() {


        return serverSettings;
    }
}
